package com.test.controller;


import com.test.model.UserBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @Author：徐志荣
 * @Date：2023/6/11 上午 9:58
 */
@Controller
public class UserController {
    @Autowired
    private UserBean user1;
    public void getUser(){
        System.out.println("张三：user1 : "+user1);
        UserBean u = user1;
        u.setName("李四");
        System.out.println("李四：u : "+u);

    }
}
